# v1=10
# v2=5
# print(bin(v1),bin(v2))#0b1010 0b101
# print(v1.bit_length(),v2.bit_length())#4 3
# print(int(True),int(False)) #1 0
# print(int("250",base=10))#把字符串看成十进制数字
# print(int("0b101",base=2))#把字符串看成二进制数字
# print(int("0o11",base=8))#把字符串看成八进制数字
# print(int("0x10",base=16))#把字符串看成十六进制数字
#print(int("scbsbc"))#不能转换
# print(3/2)
# print(True+False,True-True)
# print(bool(0))
# print(bool(-10))
# print(bool(10))
# print(bool("武沛齐"))
# print(bool(""))
# print(bool(" "))
# print(bool([]) )# [] 表示空列表
# print(bool([11,22,33])) # [11，22，33] 表示非空列表
# print(bool({})) # {} 表示空字典
# print(bool({"name":"武沛齐","age":18}))# {"name":"武沛齐","age":18} 表示非空字典
# while 1<9:
#     pass
# 案例
# v1 = input("请输入住址：")
# if v1.startswith("北京"):
# 	print("北京人口")
# else:
# 	print("非北京人口")
# v1 = "每天事情真多，烦死了"
# result = v1.endswith("烦死了")
# print(result) # 值为True
# v1 = "ox38871"
# result = v1.isdecimal()#判断是否为十进制数数字字符组成
# print(result) # False
# msg = " H e ll o啊，树哥 "
# print(msg.strip(),msg.rstrip(),msg.lstrip())
# 案例
# code = input("请输入4位验证码：") #  FB87
# data = code.strip()
# if data == "FB87":
# 	print('验证码正确')
# else:
# 	print("验证码错误")